#include <iostream>
#include <string>

using namespace std;

int main()
{
    string S;
    int ret[10] = {0};
    cin >> S;
    for (auto i : S)
    {
        ret [i - '0']++;
    }
    for (int i = 0; i < 10; ++i)
    {
        cout << ret[i] << " ";
    }
    return 0;
}